import request from "@/utils/request";
export const selectResPopInfo = (data) => {
  return request({
    url: "/api/v-res-pop/selectResPopInfo",
    method: "post",
    data,
    timeout: 5000,
  });
};
export const houseHoldRegistered = (data) => {
  return request({
    url: "/api/v-res-pop/houseHoldRegistered",
    method: "post",
    data,
    timeout: 5000,
  });
};
export const birthDeclaration = (data) => {
  return request({
    url: "/api/v-res-pop/birthDeclaration",
    method: "post",
    data,
    timeout: 5000,
  });
};
export const householdLogout = (data) => {
  return request({
    url: "/api/v-res-pop/householdLogout",
    method: "post",
    data,
    timeout: 5000,
  });
};
export const selectLastInfo = () => {
  return request({
    url: "/api/household/selectLastInfo",
    method: "post",
    timeout: 5000,
  });
};
export const householdMigrate = (data) => {
  return request({
    url: "/api/v-res-pop/householdMigrate",
    method: "post",
    data,
    timeout: 5000,
  });
};


export function changeHouseholdRelation (data){
  return request({
    url: "/api/v-res-pop/changeHouseholdRelation",
    method: "post",
    data,
    headers:{"Content-Type": "application/json"},
    timeout: 5000,
  });
}
